<html>
<body>
<input type="button" value="callAndroid" onclick="callAndroid()">
<input type="button" value="jumpShowShop" onclick="jumpShowShop(124545)">
<input type="button" value="showAlert" onclick="showAlert()">
<input type="button" value="showConfirm" onclick="showConfirm()">
<input type="button" value="showPrompt" onclick="showPrompt()">
</body>
<script>
    function callAndroid(){
        document.location = "js://webView?arg1=123&arg2=456";
    }
    function jumpShowShop(productId){
        document.location = "js://webView?func=showData&id="+productId;
    }
    function showAlert(){
        alert("js://webView?func=getInfo&id=2459");
    }
    function showConfirm(){
        var result = confirm("js://webView?func=getInfo");
        if(result){
            document.write("你好帅哥");
        }else{
            document.write("你好美女");
        }
    }
    function showPrompt(){
        var name = prompt("js://webView?func=getName");
        document.write("你好，"+ name);
    }
</script>
</html>